Repository navigation
feat: 将候选拼音搜索迁至 Python 后端 - #48
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
角色、音乐及 CP 成员搜索现在由 Python 后端统一匹配名称、别名和主作品/专辑,支持原文、全拼、简拼、多音字、混输及既有模糊音规则。
POST /api/v1/autocomplete/search,按分类和年度返回完整 candidate IDs。配套前端需在后端已向目标环境提供新契约后发布;本 PR 不执行部署、数据导入或重新计票。PR 分支从当前 main 建立,仅移入本次功能与文档提交,排除了原分支继承的音乐白名单修复。
验证(独立 PR 检出):
python -m pytest tests/unit/test_pinyin_matcher.py tests/unit/test_cache.py tests/integration/test_autocomplete.py tests/integration/test_vote_objects.py -q --tb=short:33 passed。python -m flake8 src/ --max-line-length=88、git diff --check:通过。配套前端:PatchyVideo/Touhou-Vote#33。